#pragma once

#include <iostream>
#include <string>
#include <vector>

namespace StringUtils
{
	inline std::vector<std::string> Explode(std::string delimiters, std::string search)
	{
		std::vector<std::string> result;

		char* token = strtok(const_cast<char*>(search.c_str()), delimiters.c_str());
		while(token != 0)
		{
			result.push_back(token);
			token = strtok(0, delimiters.c_str());
		}
		return result;
	}
};